package java01.bll;

import java.awt.*;

public class Square implements IShape {
    private double width;

    public Square(double width) {
        this.width = width;
    }

    @Override
    public double getArea() {
        return width * width + this.OFFSET;
    }

    @Override
    public double getPerimeter() {
        return width * 4 + OFFSET;
    }
}
